<template>
  <el-card shadow="always" :body-style="{ padding: '20px' }">
    <el-table border :data="tableData" style="width: 100%">
      <el-table-column type="index" label="序号" width="80"> </el-table-column>
      <el-table-column prop="date" label="名称"> </el-table-column>
      <el-table-column prop="name" label="描述"> </el-table-column>
      <el-table-column prop="address" label="默认图片"> </el-table-column>
      <el-table-column prop="address" label="重量"> </el-table-column>
      <el-table-column prop="address" label="价格"> </el-table-column>
      <el-table-column label="操作">
        <el-button
          type="info"
          size="small"
          title="下线"
          icon="el-icon-top"
        ></el-button>
        <el-button
          type="success"
          size="small"
          title="上线"
          icon="el-icon-bottom"
        ></el-button>
        <el-button
          type="primary"
          size="small"
          title="修改"
          icon="el-icon-edit-outline"
        ></el-button>
        <el-button
          type="info"
          size="small"
          title="分配Sku"
          icon="el-icon-warning-outline"
        ></el-button>
        <el-button
          type="danger"
          size="small"
          title="删除Sku"
          icon="el-icon-delete"
        ></el-button>
      </el-table-column>
    </el-table>
    <el-pagination
      background
      :style="{ marginTop: '20px' }"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-sizes="[5, 10, 15, 20]"
      :page-size="pageSize"
      layout=" prev, pager, next, total, sizes,jumper"
      :total="total"
    />
  </el-card>
</template>

<script>
export default {
  name: "Sku",
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
      currentPage: 1, // 当前页
      pageSize: 5, // 每页显示
      total: 0, // 总数据
    };
  },
  methods: {
    handleSizeChange() {},
    handleCurrentChange() {},
  },
};
</script>

<style scoped></style>
